package com.bill99.codecheck.sonar.orm.manager.impl;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.bill99.codecheck.sonar.orm.dao.SonarDataDao;
import com.bill99.codecheck.sonar.orm.manager.SonarMng;
import com.bill99.riaframework.common.dto.SonarSeriousProblemDto;

public class SonarMngImpl implements SonarMng {
	private SonarDataDao sonarDataDao;

	public SonarDataDao getSonarDataDao() {
		return sonarDataDao;
	}

	public void setSonarDataDao(SonarDataDao sonarDataDao) {
		this.sonarDataDao = sonarDataDao;
	}

	public Map<String, BigDecimal> getSonarContentByProjectKey(String projectKey) {

		return sonarDataDao.getSonarContentByProjectKey(projectKey);
	}

	public Long getIdByName(String projectKey) {
		
		return sonarDataDao.getIdByName(projectKey);
	}

	
	public List<SonarSeriousProblemDto> getSonarSeriousProblemByProjectKey(String projectKey) {
		return sonarDataDao.getSonarSeriousProblemByProjectKey(projectKey);
	}


}
